package com.sc.nft.entity.vo.ecology;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.dto.AdminShareProfitCollectDetailsDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AdminShareProfitCollectDetailsVO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户手机号")
    private String userTel;

    @ApiModelProperty(value = "熔炼数量")
    private Integer useCount;

    @ApiModelProperty(value = "熔炼燃料")
    private String ecologyPoints;

    @ApiModelProperty(value = "销毁数量")
    private Integer destroyCount;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "分享燃料")
    private String shareProfitPoints;

    @ApiModelProperty(value = "平台分红池燃料")
    private String platformDividePoints;

    @ApiModelProperty(value = "DAO分红池燃料")
    private String daoDivideIntoPoints;

    @ApiModelProperty(value = "生态风控池燃料")
    private String riskPoolPoints;

    @ApiModelProperty(value = "技术服务费燃料")
    private String technicalServiceFeePoints;

    @ApiModelProperty(value = "平台分账燃料")
    private String platformAccountPoints;

    @ApiModelProperty(value = "DAO分账燃料")
    private String daoAccountPoints;

    @ApiModelProperty(value = "平台市值管理发放燃料")
    private String platformMarketValueManagementPoints;

    @ApiModelProperty(value = "DAO市值管理发放燃料")
    private String daoMarketValueManagementPoints;

    @ApiModelProperty(value = "服务中心市值管理燃料")
    private String serviceCenterMarketValueManagementPoints;

    @ApiModelProperty(value = "系统没收燃料")
    private String systemForfeiture;

    public void setDto(AdminShareProfitCollectDetailsDTO dto) {
        this.shareProfitPoints = dto.getShareProfitPoints().stripTrailingZeros().toPlainString();
        this.platformDividePoints = dto.getPlatformDividePoints().stripTrailingZeros().toPlainString();
        this.daoDivideIntoPoints = dto.getDaoDivideIntoPoints().stripTrailingZeros().toPlainString();
        this.riskPoolPoints = dto.getRiskPoolPoints().stripTrailingZeros().toPlainString();
        this.technicalServiceFeePoints = dto.getTechnicalServiceFeePoints().stripTrailingZeros().toPlainString();
        this.platformAccountPoints = dto.getPlatformAccountPoints().stripTrailingZeros().toPlainString();
        this.daoAccountPoints = dto.getDaoAccountPoints().stripTrailingZeros().toPlainString();
        this.platformMarketValueManagementPoints = dto.getPlatformMarketValueManagementPoints().stripTrailingZeros().toPlainString();
        this.daoMarketValueManagementPoints = dto.getDaoMarketValueManagementPoints().stripTrailingZeros().toPlainString();
        this.serviceCenterMarketValueManagementPoints = dto.getServiceCenterMarketValueManagementPoints().stripTrailingZeros().toPlainString();
        this.systemForfeiture = dto.getSystemForfeiture().stripTrailingZeros().toPlainString();
    }
}
